<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: src/libslic3r/GCodeTimeEstimator.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f69e6fbaea45487e96bc9ed8ccf9ff8f.html">libslic3r</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">GCodeTimeEstimator.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_g_code_time_estimator_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef slic3r_GCodeTimeEstimator_hpp_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define slic3r_GCodeTimeEstimator_hpp_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="libslic3r_8h.html">libslic3r.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_g_code_reader_8hpp.html">GCodeReader.hpp</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_slic3r.html">Slic3r</a> {</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_g_code_time_estimator.html">    9</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_slic3r_1_1_g_code_time_estimator.html">GCodeTimeEstimator</a> : <span class="keyword">public</span> <a class="code" href="class_slic3r_1_1_g_code_reader.html">GCodeReader</a> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_g_code_time_estimator.html#a79bd766bf0889488ba856babc2c29694">   11</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_slic3r_1_1_g_code_time_estimator.html#a79bd766bf0889488ba856babc2c29694">time</a> = 0;  <span class="comment">// in seconds</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    </div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_g_code_time_estimator.html#a3b400a7ef39c8cd883fee75be8f7e190">parse</a>(<span class="keyword">const</span> std::string &amp;gcode);</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_g_code_time_estimator.html#a7b472bef54878953b100f6e74b690b49">parse_file</a>(<span class="keyword">const</span> std::string &amp;file);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    </div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_g_code_time_estimator.html#acb6c4612ad72d3ea3d944357ff34342a">   17</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_slic3r_1_1_g_code_time_estimator.html#acb6c4612ad72d3ea3d944357ff34342a">acceleration</a> = 9000;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_g_code_time_estimator.html#ac04d85dffa9d42617cb9a0c43b07416b">_parser</a>(<a class="code" href="class_slic3r_1_1_g_code_reader.html">GCodeReader</a>&amp;, <span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_g_code_reader_1_1_g_code_line.html">GCodeReader::GCodeLine</a> &amp;line);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">float</span> <a class="code" href="class_slic3r_1_1_g_code_time_estimator.html#afe13d51514cd58950e319ebbe3717122">_accelerated_move</a>(<span class="keywordtype">double</span> length, <span class="keywordtype">double</span> v, <span class="keywordtype">double</span> acceleration);</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;};</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;} <span class="comment">/* namespace Slic3r */</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* slic3r_GCodeTimeEstimator_hpp_ */</span><span class="preprocessor"></span></div><div class="ttc" id="class_slic3r_1_1_g_code_reader_html"><div class="ttname"><a href="class_slic3r_1_1_g_code_reader.html">Slic3r::GCodeReader</a></div><div class="ttdef"><b>Definition:</b> GCodeReader.hpp:14</div></div>
<div class="ttc" id="libslic3r_8h_html"><div class="ttname"><a href="libslic3r_8h.html">libslic3r.h</a></div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html_a79bd766bf0889488ba856babc2c29694"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html#a79bd766bf0889488ba856babc2c29694">Slic3r::GCodeTimeEstimator::time</a></div><div class="ttdeci">float time</div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.hpp:11</div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html_afe13d51514cd58950e319ebbe3717122"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html#afe13d51514cd58950e319ebbe3717122">Slic3r::GCodeTimeEstimator::_accelerated_move</a></div><div class="ttdeci">static float _accelerated_move(double length, double v, double acceleration)</div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.cpp:52</div></div>
<div class="ttc" id="_g_code_reader_8hpp_html"><div class="ttname"><a href="_g_code_reader_8hpp.html">GCodeReader.hpp</a></div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html_a3b400a7ef39c8cd883fee75be8f7e190"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html#a3b400a7ef39c8cd883fee75be8f7e190">Slic3r::GCodeTimeEstimator::parse</a></div><div class="ttdeci">void parse(const std::string &amp;gcode)</div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.cpp:8</div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html_acb6c4612ad72d3ea3d944357ff34342a"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html#acb6c4612ad72d3ea3d944357ff34342a">Slic3r::GCodeTimeEstimator::acceleration</a></div><div class="ttdeci">float acceleration</div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.hpp:17</div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html">Slic3r::GCodeTimeEstimator</a></div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.hpp:9</div></div>
<div class="ttc" id="namespace_slic3r_html"><div class="ttname"><a href="namespace_slic3r.html">Slic3r</a></div><div class="ttdef"><b>Definition:</b> BoundingBox.cpp:4</div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_reader_1_1_g_code_line_html"><div class="ttname"><a href="class_slic3r_1_1_g_code_reader_1_1_g_code_line.html">Slic3r::GCodeReader::GCodeLine</a></div><div class="ttdef"><b>Definition:</b> GCodeReader.hpp:17</div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html_a7b472bef54878953b100f6e74b690b49"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html#a7b472bef54878953b100f6e74b690b49">Slic3r::GCodeTimeEstimator::parse_file</a></div><div class="ttdeci">void parse_file(const std::string &amp;file)</div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.cpp:14</div></div>
<div class="ttc" id="class_slic3r_1_1_g_code_time_estimator_html_ac04d85dffa9d42617cb9a0c43b07416b"><div class="ttname"><a href="class_slic3r_1_1_g_code_time_estimator.html#ac04d85dffa9d42617cb9a0c43b07416b">Slic3r::GCodeTimeEstimator::_parser</a></div><div class="ttdeci">void _parser(GCodeReader &amp;, const GCodeReader::GCodeLine &amp;line)</div><div class="ttdef"><b>Definition:</b> GCodeTimeEstimator.cpp:20</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
